package lex.netant;

import java.net.HttpURLConnection;
import java.net.URL;

public class GetRequest extends Thread {
	HttpURLConnection con;
	URL url;

	public GetRequest() {
	}

	public void run() {
		try {
			url = new URL(Utility.url);
			con = (HttpURLConnection) url.openConnection();
			Utility.code = con.getResponseCode();
			Utility.size = con.getContentLength();
			// System.out.println("code:"+Utility.code);
			System.out.println("size:" + Utility.size);
			con.disconnect();
			NetAntMainFrame.setStartTrue();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
